package com.miexample.ec.commodity.dao;

import com.miexample.ec.common.pojo.Commodity;

import java.util.List;

/**
 * CommodityDao
 *
 * @author reck
 * @date 2018/06/20
 */
public interface CommodityDao {
    boolean save(Commodity commodity);

    Commodity get(Long id);

    boolean remove(Commodity commodity);

    boolean update(Commodity commodity);

    boolean batchSave(List<Commodity> commodities);
}
